package org.lemon.cla.converter;

import org.lemon.cla.enums.ClubApplicationStatusEnum;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
class ClubApplicationStatusEnumConverter implements Converter<String, ClubApplicationStatusEnum> {
    @Override
    public ClubApplicationStatusEnum convert(String source) {
        return ClubApplicationStatusEnum.fromDescription(source);
    }
}